package Model;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.TimeZone;


public class Client {
	private Long id;
	private String name;
	private Date registrationDate;
	private String goldMember;  //ano, ne
	private String blackListed; //ano, ne

        /**
         * constructors
         */
        public Client(){}
        
        /**
         * Implemented methods
         */

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
            	this.name= name;
	}

	public Date getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(Date date) {
            this.registrationDate = date;
	}

	public String getGoldMember() {
		return goldMember;
	}

	public void setGoldMember(String goldMember) {
		this.goldMember = goldMember;
	}

	public String getBlackListed() {
		return blackListed;
	}

	public void setBlackListed(String blackListed) {
		this.blackListed = blackListed;
	}

        private static Date newDate(int year, int month, int day) {
            Calendar calendar = new GregorianCalendar();
            calendar.setTimeZone(TimeZone.getTimeZone("GMT+1"));
            //mesice se cisluji od nuly
            //dny jsou od jednicky
            calendar.set(year, month, day);
            Date date = calendar.getTime();
            return date;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Client other = (Client) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }     
}